package com.buding.fx.common.enums;

import org.apache.commons.lang3.StringUtils;

/**
 * @author mingdongwei-jwk
 * @date 2022/10/09 10:54
 * @class com.buding.fx.common.enums
 * @Description
 */
public enum PropertyKeyEnum {
        total_percent("整体占屏幕比"),
        HEIGHT("整体高"),
        WIGTH("整体宽"),
        top_height_percent("顶部菜单占总高度百分比"),
        top_wight("顶部导航栏菜单宽度"),
        top_height("导航栏占整体高度（包含导航栏）"),
        top_logo_line_percent("顶部菜单，logo部分占比"),
        top_logo_line_width("顶部logo部分宽度"),
        top_logo_line_height("顶部logo区域高度"),
        top_navigation_bar_width("顶部导航栏宽度"),
        top_navigation_bar_height("顶部导航栏高度"),
        left_width_percent("左边菜单树栏占整体宽"),
        left_wight("左边菜单树的宽度"),
        left_height("左边菜单树的高度"),
        center_weight("中心内容展示区域宽度"),
        center_height("中心内容展示区域的高度"),
        center_content_left("中间内容距离左边边框的距离"),
        center_title_height("中间区域导航栏的高度"),
        navigation_font_size("导航栏默认字体大小"),
        onclick_navigation_font_size("导航栏点击字体大小"),
        top_icon_img_width("导航栏图标默认展示宽度"),
        onclick_icon_width("导航栏图标点击后展示宽度"),
        navigation_backhround_color("导航栏背景颜色"),
        navigation_font_color("导航栏字体颜色"),
        navigation_font_click_color("导航栏点击后字体颜色"),
        icon_gap("导航栏icon间隔"),
        centr_serch_width_percent("中间搜索区域占比宽"),
        centr_serch_width("中间搜索区域的宽度"),
        navigation_font_famliy("导航栏字体名称"),
        left_node_right_border_color("左边树的右边框颜色"),
        logoUrl("logo图片地址"),
        systemName("系统名称"),
        system_name_font_color("系统名称颜色"),
        system_name_font_shadow_color("系统名称阴影颜色"),
        system_name_font_family("系统名称阴影颜色"),
        version("系统版本号"),
        center_search_background_color("中间搜索区域背景颜色");

        private String desc;

        PropertyKeyEnum(String desc) {
            this.desc = desc;
        }

        public String getDesc() {
                return desc;
        }

        public void setDesc(String desc) {
                this.desc = desc;
        }

        public static  String getDescByName(String name){
                if(StringUtils.isNotEmpty(name)){
                        for (PropertyKeyEnum propertyKeyEnum:PropertyKeyEnum.values()){
                                if (propertyKeyEnum.name().equals(name)){
                                        return propertyKeyEnum.getDesc();
                                }
                        }
                }
                return "";
        }
}
